package com.itheima.mapper;

import com.itheima.doman.pojo.StdQueryParam;
import com.itheima.doman.pojo.Student;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface StdMapper {
    List<Student> list(StdQueryParam stdQueryParam);

    void deleteByIds(List<Integer> ids);

    void insertStd(Student student);

    Student findById(Integer id);

    void update(Student student);

    List<Map> countStudentDegree();

    List<Map<String,Object>> countStudentData();

    Integer getByClazzId(Integer id);
    /**
     * 批量保存学员信息
     */
    void insertBatch(List<Student> cachedDataList);

}
